import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import App from './App.vue'
import router from './router'
import { registerMicroApps, start } from './sjc-fe'

registerMicroApps([
    {
        name: "app-react",
        entry: "http://localhost:9001",
        container: "#subapp-conttainer",
        activeRule: "/app-react",
    },
    {
        name: "app-vue2",
        entry: "http://localhost:9002",
        container: "#subapp-conttainer",
        activeRule: "/app-vue2",
    },
    {
        name: "app-vue3",
        entry: "http://localhost:9003",
        container: "#subapp-conttainer",
        activeRule: "/app-vue3",
    }
])
start()
const app = createApp(App)
app.use(ElementPlus)
app.use(router)
app.mount('#app')
